JavaScript

A5.PanelNavigatorsetSize Method

Syntax

A5.PanelNavigator.setSize(width,height[,lazy[,fireSizeEvent]])

Arguments

widthnumber

Set the panel to a specific size.

heightnumber

The height in pixels.

lazyboolean

Whether or not to do a "lazy" resize. If true then sizing calculations will not be performed if the size has not changed. The default is false.

fireSizeEventboolean

Whether or not to fire the onSize event. The default value is true.

Description

Set the panel to a specific size.

Discussion

This method is used automatically when the size of the panel is bound to "self", "parent" or "window". The set size method can be used programmatically to set the size of a panel when the panel's size in not bound.

Example

// assume pObj is a pointer to a panel class
pObj.setSize(200,400,true,true); // size the panel to 200 pixels wide by 400 pixels tall, don't set the size if it is already that size, and fire the resize event.